<%include file="include/head.html"%>
<div class="wrapper">
  <div id="div-home" class="main-info-box">
    <%include file="include/crumbs.html"%>
    <%include file="include/edit_nav.html"%>
    <div class="div-info-body">

      <!-- <div id="div-base-info"> -->
      <div itemscope itemtype="/Public/person.html">
	<div class="figure">
	  <img itemprop="figure" src="<%$user.figureurl%>"/>
	</div>
	<dl class="dl-base-info">
	  <dt>姓名：</dt>
	  <dd itemprop="name"><%$user.realname%></dd>
	  <dt>性别：</dt>
	  <dd itemprop="gender"><%$user.gender_str%></dd>
	  <dt>出生：</dt>
	  <dd itemprop="day_of_birth"><%$user.day_of_birth%></dd>
	  <dt>地域：</dt>
	  <dd itemprop="region"><%$user.region%></dd>
	  <dt>开放：</dt>
	  <%assign var="open_state" value=$user.open%>
	  <dd itemprop="open"><%$open.$open_state%></dd>
	</dl>

	<!-- family -->
        <dl class="dl-family">
          <dt>父亲：</dt>
          <dd itemprop="fathers">
	    <%if $fathers|@count gt 0%>
            <ul class="home-members">
	      <%foreach from=$fathers item=father%>
	      <li>
		<%$father.realname%>
		<%if $father.state eq $RESOURCE_STATE_DELETED%>(已删除)<%/if%>
	      </li>
	      <%/foreach%>
	    </ul>
	    <%/if%>
	  </dd>

          <dt>母亲：</dt>
          <dd itemprop="mothers">
	    <%if $mothers|@count gt 0%>
            <ul class="home-members">
	      <%foreach from=$mothers item=mother%>
	      <li>
		<%$mother.realname%>
		<%if $mother.state eq $RESOURCE_STATE_DELETED%>(已删除)<%/if%>
	      </li>
	      <%/foreach%>
	    </ul>
	    <%/if%>
	  </dd>
          <dt>配偶：</dt>
          <dd itemprop="mates">
	    <%if $mates|@count gt 0%>
            <ul class="home-members">
	      <%foreach from=$mates item=mate%>
              <li>
		<%$mate.realname%><%if $mate.state eq $RESOURCE_STATE_DELETED%>(已删除)<%/if%>
	      </li>
	      <%/foreach%>
            </ul>
	    <%/if%>
	  </dd>
          <dt>子女：</dt>
          <dd itemprop="sons">
	    <%if $sons|@count gt 0%>
            <ul class="home-members">
	      <%foreach from=$sons item=son%>
	      <li>
		<%$son.realname%><%if $son.state eq $RESOURCE_STATE_DELETED%>(已删除)<%/if%>
	      </li>
	      <%/foreach%>
	    </ul>
	    <%/if%>
	  </dd>
        </dl>

      </div>
      <div class="clear"></div>
    </div>

  </div>
</div>

<%include file="include/bottom.html"%>
